package com.xjy.dao;

import com.xjy.pojo.Path;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface pathMapper {

    List<Path> getPaths();

    int addPath(Path path);

    int updatePath(Path path);

    Path getPathById(@Param("pid") String pid);

    List<Path> getPathsByProvince(@Param("province") String province);

    List<Path> getPathsByCity(@Param("city") String city);

    List<Path> getPathsByDaytime(@Param("daytime") int daytime);

    List<Path> getPathsByStaus(int status);

    List<Path> getRandomPath();

    Path getPathInfoById(String pid);

    int addPathPic(@Param("picid") String picid,@Param("pic") String pic);

    int updatePathPic(Map<String, String> map);

    int deletePathPic(@Param("picid")String picid,@Param("pic") String pic);

    List<Path> getHotPaths();
}
